package com.github.llyb120.qiuya.util;

import com.github.llyb120.qiuya.error.QTypeErrorException;
import com.github.llyb120.qiuya.type.QCollectionMeta;
import com.github.llyb120.qiuya.type.QType;

public class AssertUtil {

    public static void assertType(short type, QType shouldBe){
        if(type != shouldBe.getValue()){
            throw new QTypeErrorException(type, shouldBe);
        }
    }
}
